package com.jiantong.work.service;

import com.jiantong.work.model.DisinfectReport;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by maowenjie on 2017/3/29.
 */
public interface DisinfectReportReadService {
    /**
     * 根据id- 防疫中心-消毒记录 养殖端的申报详情
     * @param id 主键id
     * @return DisinfectReport 对象
     */
    Response<DisinfectReport> findById(Long id);

    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);
    /**
     * 根据status分页查询 - 防疫中心-消毒记录的列表
     * @param pageNo 页码
     * @param pageSize 条数
     * @param status 状态
     * @return Paging<DisinfectReport>
     */
    Response<Paging<DisinfectReport>> pagingDisinfectReport(Integer pageNo, Integer pageSize, Integer status,Long breedFactoryId);

    /**
     * 根据从日期到日期和养殖场名称查看防疫中心5项纪录的列表
     */
    Response<Paging<DisinfectReport>> pagingDisinfectReportGqv(Integer pageNo, Integer pageSize, Long breedFactoryId,Integer breedType, Date fromDate, Date toDate);


    Response<Paging<DisinfectReport>> pagingDisinfectReportGqv(Integer pageNo, Integer pageSize, Map map);


    Response<Integer> countDisinfectForWeb(Map<String, Object> map);

    Response<List<Map<String,Object>>> findDisinfectInfoForWeb(Map<String, Object> map);
}
